﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using RsCms.Application;

namespace Plugin.RsCms.Controllers
{
    [Route("api/stat")]
    [ApiController]
    public class CmsStatController : ControllerBase
    {
        IStatAppService statAppService;
        public CmsStatController(IStatAppService statAppService)
        {
            this.statAppService = statAppService;
        }
        [HttpGet("info")]
        public async Task<object> GetStatAsync()
        {
            return await statAppService.GetStatAsync();
        }
    }
}
